<?php

class Example_Element_Site_Main
    extends OOWP_Element
{

    public function __construct(array $args = array( ))
    {
        $input = $this->merge_arguments(array(
            'attributes' => array(
                'class' => array(
                    'clearfix',
//                    'container_12',
                ),
                'id' => 'content',
            ),
            'contents' => array(
                'nav_above' => null,
                'title' => null,
                'loop' => null,
                'nav_below' => null,
            ),
            'tag' => 'div',
        ), $args);

        parent::__construct($input);
    }

    protected function filter_element_contents($pieces)
    {
        $start = '<div class="inside container_12">';
        $end = '</div>';

        array_unshift($pieces, $start);
        array_push($pieces, $end);

        return $pieces;
    }
}
